import request from '@/utils/request'

// 查询渠道账户流水列表
export function listChannelInfoHis(query) {
  return request({
    url: '/account/channelInfoHis/list',
    method: 'get',
    params: query
  })
}

// 查询渠道账户流水详细
export function getChannelInfoHis(id) {
  return request({
    url: '/account/channelInfoHis/' + id,
    method: 'get'
  })
}

// 新增渠道账户流水
export function addChannelInfoHis(data) {
  return request({
    url: '/account/channelInfoHis',
    method: 'post',
    data: data
  })
}

// 修改渠道账户流水
export function updateChannelInfoHis(data) {
  return request({
    url: '/account/channelInfoHis',
    method: 'put',
    data: data
  })
}

// 删除渠道账户流水
export function delChannelInfoHis(id) {
  return request({
    url: '/account/channelInfoHis/' + id,
    method: 'delete'
  })
}
